/**业务管理-收款方式API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//查询所有字典
export function getDictionary(params) {
  return request({
    url: '/dict',
    method: 'get',
    params
  })
}
//添加
export function addDictionary(data) {
  return request({
    url: '/dict',
    method: 'post',
    data:data
  })
}
//修改
export function modDictionary(data) {
  return request({
    url: '/dict',
    method: 'put',
    data
  })
}
//删除
export function delDictionary(ids) {
  return request({
    url: '/dict',
    method: 'delete',
    data:ids
  })
}

//禁用或者启
export function disableOrEnableDictionary(ids,params) {
  return request({
    url: '/dict/disableOrEnable',
    method: 'put',
    data:ids,
    params
  })
}
